import http from '@/utils/http'

/**
 * 新增学院接口
 * @param {*} param
 * @returns
 */
export const addApi = async(param) => {
  return http.post('/api/college', param)
}

/**
 * 查询学院接口
 * @param {*} param
 * @returns
 */
export const listApi = async(param) => {
  return http.get('/api/college/list', param)
}

/**
 * 编辑学院接口
 * @param {*} param
 * @returns
 */
export const editApi = async(param) => {
  return http.put('/api/college', param)
}

/**
 * 编辑学院接口
 * @param {*} param
 * @returns
 */
export const deleteApi = async(param) => {
  return http.delete('/api/college', param)
}
